{% extends "base.html" %} {% block title %}我的图书列表{% endblock %} {% block
content %}
<div class="page">
  <div class="page__hd">
    <div class="page__title">说明</div>
    <div class="page__desc">我上传的图书，审核后，可以分享</div>
  </div>
  <div class="page__bd">
    <div class="weui-flex">
      <div class="weui-flex__item">
        <div class="placeholder"></div>
      </div>
      <div>
        <div class="placeholder">
          <a href="/chat2book" role="button" class="weui-btn weui-btn_mini weui-btn_primary weui-wa-hotarea">留言</a>
          <a href="/addbook" role="button" class="weui-btn weui-btn_mini weui-btn_primary weui-wa-hotarea">上传</a>
        </div>
      </div>
    </div>
    <div class="weui-cells__title">图书列表</div>
    <div class="weui-cells">
      {% for book in books %}
      <a class="weui-cell weui-cell_access" href="/detailbook/{{book.id}}">
        <span class="weui-cell__bd">
          <span>{{ book.name }}</span>
        </span>
        <span class="weui-cell__ft"> </span>
      </a>
      {% endfor %}
      <!-- 上一页 和下一页 -->
      <div class="weui-flex">
        <div>
          <div class="placeholder">
            <a href="/my?{{prev_page}}" role="button"
              class="weui-btn weui-btn_mini weui-btn_default weui-wa-hotarea">上一页</a>
          </div>
        </div>
        <div class="weui-flex__item">
          <div class="placeholder"></div>
        </div>
        <div>
          <div class="placeholder">
            <a href="/my?{{next_page}}" role="button"
              class="weui-btn weui-btn_mini weui-btn_default weui-wa-hotarea">下一页</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript"></script>
{% endblock %}